﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace Javavaj.iHunter
{
    /// <summary>
    /// 信息筛选器
    /// </summary>
    public interface IFilter : IPlugin
    {

        /// <summary>
        /// 某条消息是否可以通过
        /// </summary>
        /// <returns>消息评分</returns>
        int Rank(IMessage message);

        /// <summary>
        /// 向过滤器提供训练样例(正例/反例)
        /// </summary>
        /// <param name="message">作为训练材料的信息</param>
        /// <param name="isUseful">如果材料为有用消息，参数为真(True)；否则为假(False)</param>
        void Train(IMessage message, bool isUseful);

    }
}

